package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
//数据库表名
@TableName("ve_oa_car_baoxian")
//返回值变成对象本身
@Accessors(chain = true)
//重写tostring的方法？
@EqualsAndHashCode(callSuper = false)
public class VeOaCarBaoXianEntity {
    /**主键id*/
    //主键设置为自增长
    @Excel(name = "ID",width = 15)
    @TableId(type = IdType.AUTO)
    //表示对model属性的说明或者数据操作更改可以设置为必填或者隐藏
    @ApiModelProperty(value = "id")
    private Long id;

    /*车辆id*/
    //excel表格导出使用的width是excel的宽度
    //ApiModelProperty是备注用的
    @ApiModelProperty(value = "车辆ID")
    //对应数据库字段
    @TableField(value = "car_id")
    private Long carId;

    /*车辆名称*/
    //excel表格导出使用的width是excel的宽度
    @Excel(name = "车辆名称",width = 15)
    //ApiModelProperty是备注用的
    @ApiModelProperty(value = "车辆名称")
    //对应数据库字段
    @TableField(value = "car_name")
    private String carName;

    /*费用主题*/
    @Excel(name = "费用主题",width = 15)
    @ApiModelProperty(value = "费用主题")
    @TableField(value = "feiyong_name")
    private String feiYongName;

    /* 费用类型*/
    @Excel(name = "费用类型",width = 15)
    @ApiModelProperty(value = "费用类型")
    @TableField(value = "feiyong_type")
    private String feiYongType;

    /*保险金额*/
    @Excel(name = "保险金额",width = 15)
    @ApiModelProperty(value = "保险金额")
    @TableField(value = "baoxian_price")
    private Double baoXianPrice;

    /*保险开始时间*/
    @Excel(name = "保险开始时间",width = 15)
    @ApiModelProperty(value = "保险开始时间")
    @TableField(value = "baoxian_start_time")
    private Date baoXianStartTime;

    /*保险结束时间*/
    @Excel(name = "保险结束时间",width = 15)
    @ApiModelProperty(value = "保险结束时间")
    @TableField(value = "baoxian_end_time")
    private Date baoXianEndTime;

    /*备注说明*/
    @ApiModelProperty(value = "备注说明")
    @TableField(value = "back_info")
    private String backInfo;

    /*录入人id*/
    @TableField(value = "create_by")
    private String createBy;

    /*录入人名称*/
    @ApiModelProperty(value = "录入人名称")
    @TableField(value = "create_Name")
    private String createName;

    /*录入时间*/
    @ApiModelProperty(value = "录入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /*修改人id*/
    @TableField(value = "update_by")
    private String updateBy;

    /*修改人名称*/
    @ApiModelProperty(value = "修改人名称")
    @TableField(value = "update_name")
    private String updateName;

    /*修改时间*/
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /*删除标识*/
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    private Integer isDeleted;

    /*终端ID*/
    @ApiModelProperty(value = "终端ID")
    @TableField(value = "terminalId")
    private Long terminalId;

}

